<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($user->getUserId() != 12 && $user->getUserId() != 1)
	goToPage();

switch($route->getAdminAction())
{
	case "create": require_once ADMIN.DS."_alex_report".DS."create.php"; break;
	case "look": require_once ADMIN.DS."_alex_report".DS."look.php"; break;
	case "edit": require_once ADMIN.DS."_alex_report".DS."edit.php"; break;
	case "delete": require_once ADMIN.DS."_alex_report".DS."delete.php"; break;
	case "communities": require_once ADMIN.DS."_alex_report".DS."communities.php"; break;

	case "candidates": require_once ADMIN.DS."_alex_report".DS."candidates.php"; break;
	
	default: goToPage("/admin/report/look");
}

?>